FROM nginx:1.21.6
LABEL maintainer "majp@19pay.com.cn" 

ADD ./build/ /usr/share/nginx/html/ 
ADD ./run.sh /bin
ADD ./nginx.conf /etc/nginx/ 

RUN sed -i 's/\r//' /bin/run.sh
RUN chmod u+x /bin/run.sh

WORKDIR /usr/share/nginx/

CMD [ "/bin/run.sh" ]

EXPOSE 80
